#ifndef __SNTP_H_
#define __SNTP_H_

#include "freertos/FreeRTOS.h"

enum en_sntp_sync_status {
    SNTP_SYNC_STATUS_FAIL = 0,
    SNTP_SYNC_STATUS_SUCCEED = 1,    
};

void sntp_task_init(void);
bool get_sntp_sync_status(void);
uint32_t get_current_timestamp_second(void);
uint32_t get_timestamp_in_day(void);
void get_date_str(char *str_date);
void initialize_sntp(void);
esp_err_t netif_sntp_sync(void);
#endif